package com.bishengdfc;

import android.content.Intent;
import android.nfc.NfcAdapter;
import android.widget.TextView;

/**
 * Created by qzx on 2017/7/8.
 */

public class DFIDReaer {

    /*private TextView tv_label;
    private NfcAdapter nfcAdapter;
    private Intent m_intent;
    //    private Tag m_tagFromIntent;
    private byte[] b_nfcid = null;
    public static String RFID_Code = "";

    public  void   ononit(){
        try {
            nfcAdapter = NfcAdapter.getDefaultAdapter(this);
            if (nfcAdapter == null) {
                tv_label.setText("设备不支持NFC");
                // finish();
                return;
            }
            if (!nfcAdapter.isEnabled()) {
                tv_label.setText("请在系统设置中先启用NFC功能！");
                //finish();
                return;
            }
            processAdapterAction(getIntent());
        } catch (Exception e) {
            e.printStackTrace();
            tv_label.setText("设备不支持NFC");
        }
    }*/

}
